From 490d431f99d32c2c700513b59f816729cfa1c1af Mon Sep 17 00:00:00 2001 From: Shriram Rajagopalan Date: Thu, 9 Feb 2012 18:06:24 +0000 Subject: [PATCH] libxl: bugfix: create_domain() return to caller if !daemonize Currently the create_domain function does not honor the daemonize flag properly. It exits irrespective of the value of the flag. This patch fixes the issue. Signed-off-by: Shriram Rajagopalan Acked-by: Ian Campbell Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 61ca902084..f10c20c6b4 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1852,7 +1852,7 @@ waitpid_out: * If we have daemonized then do not return to the caller -- this has * already happened in the parent. */ - if ( !need_daemon ) + if ( daemonize && !need_daemon ) exit(ret); return ret; -- 2.30.2